import request from '@/utils/request'

// 查询盖楼活动信息配置列表
export function listBuildingActivity(query) {
  return request({
    url: '/business/buildingActivity/list',
    method: 'get',
    params: query
  })
}

// 查询盖楼活动信息配置详细
export function getBuildingActivity(id) {
  return request({
    url: '/business/buildingActivity/' + id,
    method: 'get'
  })
}

// 新增盖楼活动信息配置
export function addBuildingActivity(data) {
  return request({
    url: '/business/buildingActivity',
    method: 'post',
    data: data
  })
}

// 修改盖楼活动信息配置
export function updateBuildingActivity(data) {
  return request({
    url: '/business/buildingActivity',
    method: 'put',
    data: data
  })
}

// 删除盖楼活动信息配置
export function delBuildingActivity(id) {
  return request({
    url: '/business/buildingActivity/' + id,
    method: 'delete'
  })
}
